import time
dingliang=10
print("执行命令")
start=time.perf_counter()
for i in range(dingliang+1):
    a = "*"* i
    b = "."*(dingliang-i)
    c = (i/dingliang)* 100
    yxsj=time.perf_counter()-start
    print("\r{:3.0f}%[{}->{}]{:.2f}s".format(c,a,b,yxsj),end="")
    time.sleep(0.2)
print("\n"+"结束命令")